//
//  FileView.h
//  FileView
//
//  Created by 甘文鹏 on 2018/4/24.
//  Copyright © 2018年 ganwenpeng.com. All rights reserved.
//

#import <UIKit/UIKit.h>

//! Project version number for FileView.
FOUNDATION_EXPORT double FileViewVersionNumber;

//! Project version string for FileView.
FOUNDATION_EXPORT const unsigned char FileViewVersionString[];

// In this header, you should import all the public headers of your framework using statements like #import <FileView/PublicHeader.h>

@interface FileView : UIView
@property (nonatomic, copy) NSString *fileNameText;
@property (nonatomic, strong) UIFont *fileNameFont;
@property (nonatomic, strong) UIColor *fileNameTextColor;
@property (nonatomic, assign) NSInteger maxLinesOfFileName;

@property (nonatomic, copy) NSString *fileSizeText;
@property (nonatomic, strong)  UIFont *fileSizeFont;
@property (nonatomic, strong) UIColor *fileSizeTextColor;

/** 三角形的底边长，两直角边最大值为【矩形短边】的一半，如果超出过了，角度不变，直角边按比例缩短 */
@property (nonatomic, assign) CGFloat distanceOfBottomPointToRectangleRight;
/** 折线与矩形底边的夹角，0 <= α <= 90，采用的是数字，不是M_PI !!! */
@property (nonatomic, assign) CGFloat angleOfBrokenLineToRectangleBottom;
/** 折线与左侧边（以折线为底）的夹角，0 <= β <= 90，采用的是数字，不是M_PI !!! */
@property (nonatomic, assign) CGFloat angleOfBrokenLineToTriangleLeft;
/** 折角的左侧边长度（以折线为底边），处于美观的考虑，长度也不能超过矩形短边的一半 */
@property (nonatomic, assign) CGFloat lengthOfLeftForTriangle;

@property (nonatomic, strong) UIColor *innerBgColor;
@property (nonatomic, strong) UIColor *outerBgColor;

@property (nonatomic, assign) CGFloat borderWidth;

/** 两个Label的四边间距，默认是 8,8,8,8 */
@property (nonatomic, assign) UIEdgeInsets contentInsets;

@end
